﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}
<blockquote class="layui-elem-quote news_search toolList" id="menus"></blockquote>

<div class="layui-row">
    <div class="layui-col-xs2">
        <input type="text" class="layui-input" id="plan" name="plan" style="width:200px" value="20190520至20190526" />
        </div>
        <div class="layui-col-xs2">
            <button class="layui-btn" id="searchbtn">查看</button>
        </div>
    <div class="layui-col-xs10">
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-xs2">
            <ul id="tree" class="ztree"
                style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
        </div>

        <div class="layui-col-xs10" id="contentHtml">

        </div>
    </div>
    <script type="text/html" id="barList">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
    </script>


    <!--添加/编辑窗口-->
    <div id="divEdit" style="display: none">
        <form class="layui-form" action="" id="formEdit">
            <input type="hidden" name="Id" v-model="Id" />
            <div class="layui-form-item">
                <label class="layui-form-label">title</label>
                <div class="layui-input-block">
                    <input type="text" name="title" v-model="title" required lay-verify="required"
                           placeholder="title" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">UserId</label>
                <div class="layui-input-block">
                    <input type="text" name="UserId" v-model="UserId" required lay-verify="required"
                           placeholder="UserId" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Content</label>
                <div class="layui-input-block">
                    <input type="text" name="Content" v-model="Content" required lay-verify="required"
                           placeholder="Content" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">CreateTime</label>
                <div class="layui-input-block">
                    <input type="text" name="CreateTime" v-model="CreateTime" required lay-verify="required"
                           placeholder="CreateTime" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">UpdateTime</label>
                <div class="layui-input-block">
                    <input type="text" name="UpdateTime" v-model="UpdateTime" required lay-verify="required"
                           placeholder="UpdateTime" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Remark</label>
                <div class="layui-input-block">
                    <input type="text" name="Remark" v-model="Remark" required lay-verify="required"
                           placeholder="Remark" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">results</label>
                <div class="layui-input-block">
                    <input type="radio" name="results" value="1" title="value1" checked>
                    <input type="radio" name="results" value="0" title="value2">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

    <script id="tplScript" type="text/html">

        <div style="padding: 20px; background-color: #F2F2F2; overflow-x:scroll; height:2000px">
            <div class="layui-row layui-col-space15">
                {{# layui.each(d.data, function(index, item){ }}
                {{#  layui.each(item.data, function(index2, item2){ }}
                <div class="layui-col-md3">
                    <div class="layui-card">

                        <div class="layui-card-header">{{ item2.UserName }}-<input id="title-{{ item2.UserId }}" name="title-{{ item2.UserId }}" value="{{ item2.Title }}" type="text" class="ddate" style="border:none" /> </div>
                        <div class="layui-card-body">

                            <textarea name="contenttxt" id="{{ item2.UserId }}" placeholder="请输入内容" rows="10" class="layui-textarea">{{ item2.Content }}</textarea>
                           <input id="results-{{ item2.UserId }}" name="results-{{ item2.UserId }}" title="{{ item2.UserId }}" value="{{ item2.Results }}" type="number" class="layui-input result" style="width:50px"  /> 
                        </div>

                    </div>
                </div>
                {{#  }) }}
                {{#  }) }}

            </div>
        </div>

    </script>

    <script type="text/javascript" src="/layui/layui.js"></script>
    <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script><!--生成图片-->
    <script type="text/javascript" src="/userJs/WorkNotePlans.js"></script>


